package com.csi.okr.mobile.common.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 可见人表 实体类
 */
@Entity
@Table(name = "T_OKR_DESIGNATED_VISIBLE", schema = "PSGIS")
public class TOkrDesignatedVisible implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	private TOkrDesignatedVisibleId id;
	private String designatedePersonName;

	public TOkrDesignatedVisible() {
	}

	public TOkrDesignatedVisible(TOkrDesignatedVisibleId id) {
		this.id = id;
	}

	public TOkrDesignatedVisible(TOkrDesignatedVisibleId id, String designatedePersonName) {
		this.id = id;
		this.designatedePersonName = designatedePersonName;
	}

	@EmbeddedId

	@AttributeOverrides({
			@AttributeOverride(name = "OUniqueIdCode", column = @Column(name = "O_UNIQUE_ID_CODE", nullable = false, length = 20)),
			@AttributeOverride(name = "designatedePersonCode", column = @Column(name = "DESIGNATEDE_PERSON_CODE", nullable = false, length = 12)) })
	public TOkrDesignatedVisibleId getId() {
		return this.id;
	}

	public void setId(TOkrDesignatedVisibleId id) {
		this.id = id;
	}

	@Column(name = "DESIGNATEDE_PERSON_NAME", length = 16)
	public String getDesignatedePersonName() {
		return this.designatedePersonName;
	}

	public void setDesignatedePersonName(String designatedePersonName) {
		this.designatedePersonName = designatedePersonName;
	}

}
